<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>退款详情</title>
<style type="text/css">
    label{font-size: 12px;}
    .row{height: auto; line-height: 35px;}
    .uploader-blank{padding-top: 15px; width:158px;}
    .uploader-list{margin-bottom: 10px; position: relative;}
    .uploader-list img{height: 112px; width: 145px; border:#ccc 1px solid; padding: 5px;}

    #refunddetail li{list-style: none; font-size: 14px; line-height: 35px; line-height: 25px; margin-bottom: 10px;
        border-bottom: #f8f8f8 1px solid;}
    #refunddetail li p{font-size: 12px; color: #333;}
</style>
</head>
<body>
<div class="pd-20">
  <!-- <form action="" method="post" class="form form-horizontal" name="form1" id="form1"> -->
    <div class="row cl">
        <label class="form-label col-2 text-r">订单编号：</label>
        <div class="formControls col-6 s-msg" id="order_id">
            
        </div>

    </div>
    <div class="row cl">

        <label class="form-label col-2 text-r">退款原因：</label>
        <div class="formControls col-6 s-msg" id="reason">
           
        </div>

    </div>

    
   <!--  <div class="row cl">
        <label class="form-label col-2 text-r">备注：</label>
        <div class="formControls col-8" id="remark">
            
        </div>

    </div> -->
    <div class="row cl">
        <label class="form-label col-2 text-r">退款详情：</label>
        <div class="formControls col-8" id="refunddetail">
            加载中...
        </div>
        
    </div>
    <!-- <div class="row cl">
        <div class="col-9 col-offset-3">
            <input class="btn btn-primary radius" type="submit" id="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
        </div>
    </div> -->
    <!-- </form> -->
</div>
<script id="test" type="text/html">

</script>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 

<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script>
<script type="text/javascript" src="js/s.js"></script> 
<!-- <script type="text/javascript" src="js/template-native.js"></script>  -->
<script type="text/javascript">
$(function(){
    

    var oid=getUrlParam('oid');
    var reason=getUrlParam('reason');


    
    if(oid!=null){
       $.getJSON(API_XIANZHIORDER_DETAIL+'?oid='+oid+'&type=refundquery',function(data){
            if(!checkStatus(data)) return;//判断登录
            

            // var remark=data.datas.remark;
            // if(admin_shipping_code=="" || order_id==""){
            //     layer.msg("参数缺失",{icon:5,time:1000});
            //     return;
            // }
            $("#reason").html(reason);
            
            $("#order_id").html(oid);
            var html='';
            html+='<li>共消费总额: '+data.datas.total_fee+'</li>'
            html+='<li>退款结果: '+data.datas.result_code+'</li>'
            html+='<li>退回路径: '+data.datas.refund_recv_accout_0+'</li>'
            html+='<li>退款成功时间: '+data.datas.refund_success_time_0+'</li>'
            html+='<li>退款总数: '+data.datas.refund_fee+'</li>'
            html+='<li>第一次退款数: '+data.datas.refund_fee_0+'</li>'
            html+='<li>第二次退款数: '+data.datas.refund_fee_1+'</li>'
            html+='<li>第三次退款数: '+data.datas.refund_fee_2+'</li>'
            html+='<li>第四次退款数: '+data.datas.refund_fee_3+'</li>'
            html+='<li>第五次退款数: '+data.datas.refund_fee_4+'</li>'
            // html+='<li>cash_fee: '+data.datas.cash_fee+'</li>'
            // html+='<li>mch_id: '+data.datas.mch_id+'</li>'
            // html+='<li>nonce_str: '+data.datas.nonce_str+'</li>'
            // html+='<li>out_refund_no_0: '+data.datas.out_refund_no_0+'</li>'
            // html+='<li>out_trade_no: '+data.datas.cash_fee+'</li>'
            // html+='<li>refund_account_0: '+data.datas.refund_account_0+'</li>'
            // html+='<li>refund_channel_0: '+data.datas.refund_channel_0+'</li>'
            
            
            // html+='<li>refund_id_0: '+data.datas.refund_id_0+'</li>'
            
            // html+='<li>refund_status_0: '+data.datas.refund_status_0+'</li>'
            
            // html+='<li>result_code: '+data.datas.result_code+'</li>'
            
            // html+='<li>return_msg: '+data.datas.return_msg+'</li>'
            // html+='<li>sign: '+data.datas.sign+'</li>'
           
            // html+='<li>transaction_id: '+data.datas.transaction_id+'</li>'
            




            $("#refunddetail").html(html);



       })
    }else{
        parent.parent.layer.msg("缺少参数", {icon:3,time:1000});
    }
    


    
});



</script>
</body>
</html>